home *** CD-ROM | disk | FTP | other *** search
/ Visual Basic Source Code / Visual Basic Source Code.iso / vbsource / vbdatabs / ccidx_sh.h < prev    next >
C/C++ Source or Header  |  1999-03-17  |  3KB  |  80 lines

  1. // ------------------------------- //
  2. // -------- Start of File -------- //
  3. // ------------------------------- //
  4. // ----------------------------------------------------------- // 
  5. // C++ Header File Name: ccidx_sh.h
  6. // Compiler Used: MSVC40, DJGPP 2.7.2.1, GCC 2.7.2.1, HP CPP 10.24
  7. // Produced By: Doug Gaer 
  8. // File Creation Date: 12/16/1997 
  9. // Date Last Modified: 03/17/1999
  10. // Copyright (c) 1997 Douglas M. Gaer
  11. // ----------------------------------------------------------- // 
  12. // ---------- Include File Description and Details  ---------- // 
  13. // ----------------------------------------------------------- // 
  14. /*
  15. The VBD C++ classes are copyright (c) 1997, by Douglas M. Gaer.
  16. All those who put this code or its derivatives in a commercial
  17. product MUST mention this copyright in their documentation for
  18. users of the products in which this code or its derivative
  19. classes are used. Otherwise, you have the freedom to redistribute
  20. verbatim copies of this source code, adapt it to your specific
  21. needs, or improve the code and release your improvements to the
  22. public provided that the modified files carry prominent notices
  23. stating that you changed the files and the date of any change.
  24.  
  25. THIS SOFTWARE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND.
  26. THE ENTIRE RISK OF THE QUALITY AND PERFORMANCE OF THIS SOFTWARE
  27. IS WITH YOU. SHOULD ANY ELEMENT OF THIS SOFTWARE PROVE DEFECTIVE,
  28. YOU WILL ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR, OR
  29. CORRECTION.
  30.  
  31. General purpose search functions used with the CCIndex class.
  32. */
  33. // ----------------------------------------------------------- //
  34. #ifndef __CCIDX_SH_HPP__
  35. #define __CCIDX_SH_HPP__
  36.  
  37. #include "ccindex.h"
  38. #include "dllist.h"
  39. #include "btwalk.h"
  40. #include "entrykey.h"
  41.  
  42. enum CCIndexItem { // Database items used in global database searches
  43.   CARD_NAME,
  44.   COMPANY_NAME,
  45.   DEPARTMENT_NAME,
  46.   PHONE_NUMBER,
  47.   FAX_NUMBER,
  48.   CELL_NUMBER,
  49.   BEEPER_NUMBER,
  50.   EMAIL_ADDRESS,
  51.   STREET_ADDRESS,
  52.   INTERNET_URLS,
  53.   COMMENTS_BLOCK
  54. };
  55.  
  56. // Variable used to count the number of object found during a search
  57. extern int ObjectsFound;
  58.  
  59. // Global data structures used to organize and store btree nodes
  60. extern DLList<InMemCopy> CCIndex_SH_DLList; // Doubly Linked
  61. extern DLList<InMemCopy> *dllist;           // Doubly Linked
  62. extern DNode<InMemCopy> *dllistptr;         // DLList node pointer
  63.  
  64.  
  65. void BtreeSearch(Btree *btx, int item, CCIndex &ccindex,
  66.          UString &str, int find_all = 0); 
  67.  
  68. void BtreeKeySearch(EntryKey &e, int item, CCIndex &ccindex, UString &str,
  69.             int find_all);
  70.  
  71. // Visit functions used by the btree iterator
  72. void LoadKeys(EntryKey &e);
  73.  
  74. #endif  // __CCIDX_SH_HPP__ 
  75. // ----------------------------------------------------------- //
  76. // ------------------------------- //
  77. // --------- End of File --------- //
  78. // ------------------------------- //
  79.  
  80.